package com.niit.service.impl;

import com.niit.dao.SupplyMapper;
import com.niit.pojo.Supply;
import com.niit.service.SupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplyServiceImpl implements SupplyService {
    @Autowired
    private SupplyMapper supplyMapper;
    @Override
    public List<Supply> selectAllSupply() {
        return supplyMapper.selectAllSupply();
    }

    @Override
    public int addSupply(Supply supply) {
        return supplyMapper.addSupply(supply);
    }

    @Override
    public int selectIdByName(String supply_name) {
        return supplyMapper.selectIdByName(supply_name);
    }
}
